home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
clipper
/
ks94an.zip
/
AMAXSLEN.HDR
< prev
next >
Wrap
Text File
|
1994-04-25
|
1KB
|
46 lines
/******************************************************************************
The Klipper Library, for CA-Clipper 5.x
Copyright (c), 1994, Wallace Information Systems Engineering
FUNCTION:
_AMaxStrLen( acArray ) --> nLongestStringLength
PARAMETERS:
acArray : array of characters
SHORT:
Determine the length of the longest string from an array of strings.
DESCRIPTION:
_AMaxStrLen() returns the length of the longest character string in an
array of strings.
If the array is empty, the return value is 0. If any element of the array
is not of type char, the return value is 0.
NOTE:
The return value does not necessarily uniquely identify any particular array
element because two elements may have the same length. This function only
tells you how long the LONGEST element is. In the case of a tie, it doesn't
matter which.
See also: AMaxStrLen() which returns the element number associated with the
longest string element.
EXAMPLE:
LOCAL aArray := { 'a', 'bbbbbbbbb', 'aaa', 'aaaaaaaaa', 'aa'}
t = _AMaxStrLen( aArray )
Result: t = 9
Note that both the second element and the fourth element are both 9
characters long. The function returns 9 regardless.
******************************************************************************/